package com.jiaai.shop.store.api;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.jiaai.shop.store.service.ITIntegralHistoryService;
import com.jiaai.wgj.common.json.RestResultGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2018-05-05
 */
@RestController
@RequestMapping("/app/integral")
public class TIntegralHistoryController {

    @Autowired
    private ITIntegralHistoryService integralHistoryService;


    @GetMapping("his")
    public  Object historyList(String mId){
        return RestResultGenerator.genSuccessResult(integralHistoryService.selectList(new EntityWrapper().eq("memberId",mId)));
    }
}
